package com.service;

import com.entity.Cart;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CartService {

    int addCart(Cart cart);

    public  int deleteCart(@Param("cart_id") int cart_id);

    public  int update(@Param("cart_id") int cart_id,@Param("good_num") int good_num);

    List<Cart> selectALl();
    
    List<Cart> selectCartByUserid(int userid);
    
    int selectUserIdByCartId(int cart_id);
    
    Cart selectCartByCartId(Integer cart_id);
}
